//
//  YCHMOInfoViewController.m
//  YCVillageDoctor
//
//  Created by zhangxiaoliang on 2017/7/4.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import "YCHMOInfoViewController.h"

@interface YCHMOInfoViewController ()

@end

@implementation YCHMOInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"图层-1"]];
    [self.view addSubview:imageView];
    
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"HMO卡使用须知";
    UILabel *label = [[UILabel alloc]init];
    label.numberOfLines = 0;
    
    label.font = [UIFont fontWithName:kFontPingFangLight size:15];
    NSString *str  = @"1、凡是参与活动的用户，必须是通过分享人的分享页面购买“HMO卡”且支付成功，分享人才能获得业绩。\n2、分享人获取业绩规则明细\n（1）直接销售：17%\n（2）间接销售：6%\n以分享售卖百倍爱心卡为例：用户A通过分享推广链接给用户B，假设用户B购买了百倍爱心卡，则A用户有17%的提成；用户B再分享给用户C，假设用户C购买了百倍爱心卡，则B获得17%的提成，A获得6%提成。\n3、分享业绩明细可在“我的业绩”里面查看。\n4、分享人的销售架构可在“我的销售架构”里面查看。\n5、提现可在“申请提现”里面查看各类型HMO卡业绩并关注相对应的微信端进行提现。\n6、本活动最终解释权归北京远程视界集团所有。";
    [label setText:str lineSpacing:10.0f];
    [self.view addSubview:label];
    

    
    
    __weak __typeof(&*self)mySelf = self;
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(mySelf.view.mas_top).mas_offset(10);
        make.left.mas_equalTo(mySelf.view.mas_left).mas_offset(10);
        make.right.mas_equalTo(mySelf.view.mas_right).mas_offset(-10);
    }];
    
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(mySelf.view.mas_top).mas_offset(0);
        make.bottom.mas_equalTo(mySelf.view.mas_bottom).mas_offset(0);
        make.left.mas_equalTo(mySelf.view.mas_left).mas_offset(0);
        make.right.mas_equalTo(mySelf.view.mas_right).mas_offset(0);
    }];
    
    
}
@end
